<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		
		<title>Simpla Admin</title>
		
		<!--                       CSS                       -->
	  
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />	
		
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all">
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="resources/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
  
		<!-- jQuery -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
		<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="resources/scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>

		<!-- High Chart-->
		<script src="resources/scripts/highcharts.js" type="text/javascript"></script>

		<!-- ShowLoading -->
		<link href="resources/css/showLoading.css" rel="stylesheet" media="screen" /> 
		<script type="text/javascript" src="resources/scripts/jquery.showLoading.js"></script>

		<!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]-->

		
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->

		<!-- Page JS -->
		<script src="resources/pagejs/util.js" type="text/javascript"></script>
		<script src="resources/pagejs/charts.js" type="text/javascript"></script>
		<script src="resources/pagejs/promoGeneral.js" type="text/javascript"></script>
		<script>
			var page, result;
			// 页面切换
			function getContent(p, para) {
				$(".current").removeClass("current");
				$("#"+p+"Menu").addClass("current");
				$(".default-tab").addClass("current");
				$(".pageContent").hide();
				$("#"+p+"Content").show( "slide", {}, 500);
				page = p;


			}

			//调用jQueryUI日历
			$(function() {
				$( ".date" ).datepicker({ dateFormat: 'yy/mm/dd' });

				var uname = getCookie("uname"); 
				if ( uname != null && uname != "" ) { 
					$("#uname").html(uname);
				}
				else {
					window.location.href = "login2.html";
				}


				$("#main-content").css("width",window.screen.width - 247);
			});	


			function getCookie(name) { 
				if(document.cookie.length > 0) { 
					start = document.cookie.indexOf(name + "=");
					if( start != -1) { 
						start = start + name.length + 1;
						end = document.cookie.indexOf(";",start);
						if( end == -1) { 
							end = document.cookie.length;
						} 
						return decodeURI(document.cookie.substring(start,end)); 
					} 
					
				} 
				return ""; 
			} 
			
			function deleteCookie(name, path, domain) 
			{
				if(getCookie(name))
				{
					document.cookie = name + "=" +
						((path) ? "; path=" + path : "") +
						((domain) ? "; domain=" + domain : "") +
						"; expires=Thu, 01-Jan-70 00:00:01 GMT";
				}
				window.location.href = "login2.html";
			}
			function deleteAllCookies() {
				deleteCookie("uname");
				deleteCookie("uid");
				deletecookie("pwd");
			}

		</script>
	</head>
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" src="resources/images/logo.png" alt="优酷无线统计平台" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				<span id="greetingTxt">早上好</span>, <span id="uname"></span><br />
				<br />
				<a onclick="deleteAllCookies()">退出</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
				
				<li>
					<a href="#" class="nav-top-item">
						渠道推广
					</a>
					<ul>
						<li><a id="PromoGeneralMenu" href="#" onclick="getContent('PromoGeneral', '')">基本统计</a></li>
					</ul>
				</li>     
			</ul> 
						
		</div></div>
		
		<div id="main-content">
			
			<!-- 不支持JAVASCRIPT 提示-->
			<noscript>
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					Download From <a href="http://www.exet.tk">exet.tk</a></div>
				</div>
			</noscript>
			<div id="welcome" class="pageContent">
				<img src="resources/images/welcome_youku_ma.png" style="position: relative; top: 30%;" />
			</div>

			<!-- 渠道推广 -->
			<div id="PromoGeneralContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>渠道推广</h3>
						<div class="clear"></div>
					</div>
					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="promoGeneralContentStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="promoGeneralContentEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="getPromoGeneralData2()">
							
							  </div>
							  <div class="clear"></div>

						</div>
					</div>
					<div class="blockboxbg" id="PromoGeneralResultType" style="display:none">
						<div class="blockbox">

						  <div id="PromoGeneralContentTab0" onclick="changePromoGeneralContentValueType(0)" class="bitem selbitem">每日使用设备数</div>
						  <div id="PromoGeneralContentTab1" onclick="changePromoGeneralContentValueType(1)" class="bitem">每日新增设备数</div>

						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div class="tab-content default-tab" id="tabPromoGeneralContentLine">
							<div id="PromoGeneralContentLine" class="PromoGeneralContentChart" style="margin: 0 auto; "></div>
							<div id="PromoGeneralContentTable" class="PromoGeneralContentChart" ></div>
						</div>
					</div>


				</div>
			</div>
			<div class="clear"></div>
		
	</div></body>
</html>
